home *** CD-ROM | disk | FTP | other *** search
- /*
- ** MacWT -- a 3d game engine for the Macintosh
- ** © 1995, Bill Hayden and Nikol Software
- ** Free for non-commercial use - address questions to the e-mail address below
- **
- ** Mail: afn28988@freenet.ufl.edu (Bill Hayden)
- ** MacWT FTP site: ftp.circa.ufl.edu/pub/software/ufmug/mirrors/LocalSW/Hayden/
- ** WWW Page: http://grove.ufl.edu:80/~nikolsw
- **
- ** All of the above addresses are due to changes sometime in 1996, so stay tuned
- **
- ** based on wt, by Chris Laurel
- **
- ** This program is distributed in the hope that it will be useful,
- ** but WITHOUT ANY WARRANTY; without even the implied warranty of
- ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- */
-
-
- #ifndef _LIST_H_
- #define _LIST_H_
-
- typedef struct List_s {
- void *node;
- struct List_s *next;
- } List;
-
- #define LIST_NODE(l, type) ((type) (l)->next->node)
-
-
- typedef Boolean Scan_list_function(List *l, void *data);
-
- extern List *new_list(void);
- extern void add_node(List *l, void *node);
- extern void delete_node(List *l);
- extern void remove_node(List *l);
- extern void delete_list(List *l);
-
- extern List *scan_list(List *l, void *data, Scan_list_function *func);
- extern Boolean find_node(List *l, void *data);
-
- #endif /* _LIST_H_ */
-
-